using System;
using System.Collections.Generic;
using System.Text;

namespace Quotes
{
    public enum OperatorType
    {
       bigger = 1,
        less = -1,
        equal = 0
    }

    public enum NumberType
    {
        volume = 1,
        value = 2,
        transaction = 3,
        percent = 4
    }

    class Alert
    {
        decimal _value;
        string _symbol;
        OperatorType _operator;
        NumberType _type;
        bool _active;

        public Alert(string symbol, OperatorType op, decimal value, NumberType type, bool active)
        {
            Value = value;
            Symbol = symbol;
            Operator = op;
            NType = type;
            Active = active;
        }

        public bool Active
        {
            get { return _active; }
            set { _active = value; }
        }

        public string Symbol
        {
            get { return _symbol; }
            set { _symbol = value; }
        }

        public OperatorType Operator
        {
            get { return _operator; }
            set { _operator = value; }
        }

        public NumberType NType
        {
            get { return _type; }
            set { _type = value; }
        }

        public decimal Value
        {
            get { return _value; }
            set { _value = value; }
        }
    }
}
